const { v4 } = require('uuid');
/**
 * 获取雪花Id
 * @returns
 */
export const snowFlakeId = () => {
  // eslint-disable-next-line no-undef
  return BigInt(`0x${v4().replace(/-/g, '')}`)
    .toString()
    .slice(0, 16);
};